<include file="Public/header"/>
<style type="text/css">
	body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
	#allmap{height:500px;width:100%;}
	#r-result{width:100%; font-size:14px;}
</style>
<body style="overflow-y:hidden;">
		<div class="mui-content">
			<header class="mui-bar mui-bar-nav pub_head">
				<a class="mui-action-back mui-icon mui-pull-left iconfont icon-left" href="javascript:history.go(-1)"></a>
				<h1 class="mui-title">幼儿园详情</h1>
				<a class="mui-icon mui-pull-right iconfont icon-house1" style="font-size:26px;padding-top:0.5rem;" href='/'></a>
			</header>
			<div class="mTop intr_content">
				<div class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted intr_cont_tit">
					<a class="mui-control-item mui-active" href="#synopsis">简介</a>
					<a class="mui-control-item garten" href="#garten" >园地</a>
					<a class="mui-control-item nav" href="#nav" >导航</a>
				</div>
				<div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-4"></div>
				<div class="mui-slider-group">
					<div id="synopsis" class="mui-slider-item mui-control-content mui-active intr_list_cont">
						<div class="moment_content_title">
							{$data['content']}
						</div>
						<div class="intr_address">
							<p><i class="iconfont icon-dizhi"></i>地址：<span>{$data['address']}</span></p>
							<p><i class="iconfont icon-dianhua1"></i>电话：<span>{$data['phone']}</span></p>
							<p><i class="iconfont icon-duanxin"></i>邮箱：<span>{$data['email']}</span></p>
						</div>
						<div class=" intr_footer">
							<a class="intr_footer_phone" href="tel:{$data['phone']}">
								<i class="iconfont icon-dianhua"></i>
								<span>一键呼叫</span>
							</a>
							<div class="bdsharebuttonbox">
								<a class="intr_footer_share" href="#" data-cmd="more">
									<i class="iconfont icon-xin"></i>
									马上分享
								</a>
							</div>
						</div>
						
					</div>
					<div id="garten" class="mui-slider-item mui-control-content intr_garten_cont">
					<?php if(empty($info)){ ?>
						<div class="mui-content">
						    <div class="no-message">
						    	<i class="iconfont icon-zanwuxiaoxitixing"></i>
						    	<p>暂无消息</p>
				    		</div>
						</div>
					<?php }else{ foreach($info as $key =>$val){?>
						<ul class="intr_garten">
							<li>
								<img src="<?php 
									if(empty($val['content'][0])){
										echo 'Public/attached/default/201706191512.jpg';
									}else{
										echo $val['content'][0];
									}

								?>" />
								<img src="<?php 
									if(empty($val['content'][1])){
										echo 'Public/attached/default/201706191512.jpg';
									}else{
										echo $val['content'][1];
									}

								?>" />
								<img style="margin-right: 0;" src="<?php 
									if(empty($val['content'][2])){
										echo 'Public/attached/default/201706191512.jpg';
									}else{
										echo $val['content'][2];
									}

								?>" />
								<p><?php echo $val['title']?></p>
							</li>
						</ul>
						
						<?php } } ?>
						<input type ='hidden' name='page' class='page' value="{$page}"/>
						<input type ='hidden' name='id' class='id' value="{$data['uid']}"/>
						<p class='more'>查看更多</p>
					</div>
					<div id="nav" class="mui-slider-item mui-control-content" style="margin-top:0px;height:100%;">
					
                                            <iframe id="myiframe" width="100%" height="100%" frameborder="0" style="text-align:center;margin:0 auto;" src="{:U('Intro/nav',array('id'=>$data['uid']))}"></iframe>

					</div>
				</div>
			</div>
		</div>
	</body>

<script>
window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},
		"share":{}};
		with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
</script>

<script>
    $(function(){
        var myheight = window.screen.height;
        $("#myiframe").height(myheight);
    })
	var p=1;
	var page = $('.page').val();
	var id =$('.id').val();
	if(p >= page){
		$(".more").hide();
	}
	
$('.more').on('click',function(){
	getMore(++p,id);
	if(p >=page){
		$(".more").hide();
	}
})

function getMore(p,id){
	$.ajax({
		url:"{:U('moreCorner')}",
		data:{p:p,id:id},
		type:"post",
		success:function (data){
			$("#garten").append(data);
		}
	});
}

$(function(){
	window.onresize=function(){  
		var ifm= document.getElementById("myiframe");
		ifm.height=document.documentElement.clientHeight;
	} 
	
});
mui.init();
 (function($) {
    //阻尼系数
    var deceleration = mui.os.ios?0.003:0.0009;
    $('.mui-scroll-wrapper').scroll({
        bounce: false,
        indicators: false, //是否显示滚动条
        deceleration:deceleration
    });
})(mui);


</script>


<include file="Public/footer"/>
					